﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using DTO;
using DAO;

namespace BUS
{
    public class KhachHangBUS
    {
        public KhachHangDTO layThongTinKhachHangTheoMaKH(string makh)
        {
            

            try
            {
                KhachHangDAO dao = new KhachHangDAO();
                return dao.layThongTinKhachHangTheoMaKH(makh);
            }
            catch (Exception ex)
            {
                return null;
            }
        }

        public KhachHangDTO layThongTinKhachHangTheoMaTK(string matk)
        {
            //WebServiceInvoker invoker = new WebServiceInvoker(new Uri("http://www.g02travel.somee.com/WS/WSTravel.asmx"));

            //string service = "WSTravel";
            //string method = "WSTravel1";

            //string[] args = new string[] { "", "", "" };

            //string result = invoker.InvokeMethod<string>(service, method, args);
            try
            {
                KhachHangDAO dao = new KhachHangDAO();
                return dao.layThongTinKhachHangTheoMaTK(matk);
            }
            catch (Exception ex)
            {
                return null;
            }
        }

        
    }
}
